<?php if (!isset($v_sval)) exit;

	$v_album_id = (isset($_REQUEST["hdn_album_id"])) ? $_REQUEST["hdn_album_id"] : 0;
	$v_album_title = (isset($_REQUEST["album_title"])) ? $_REQUEST["album_title"] : '';
	$v_album_detail = (isset($_REQUEST["album_detail"])) ? $_REQUEST["album_detail"] : '';
	$v_account_id = $user_id;

if (!$v_album_id){
	$v_album_id = insertAlbum(
		$v_album_title
			,$v_album_detail
			,$v_account_id
		
		 );
}else{
	updateAlbum(
		$v_album_id
			,$v_album_title
			,$v_album_detail
			,$v_account_id
		
	 );	
}

redir("?a=ACC&acc=USER&user=ALBU&albu=U&hdn_album_id=".$v_album_id);
?>	
